<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>摇一摇活动开始了</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
            <!-- Mobile Devices Support @begin1 -->
            <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
            <meta content="telephone=no, address=no" name="format-detection">
            <meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
            <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
			<meta name="spm-id" content="a1z51.{$appkey}"/>
        <!-- Mobile Devices Support @end -->
        <link rel="shortcut icon" href="/assets/{$assets}/mob/img/favicon.ico" />
    <!-- <link rel="stylesheet" href="/assets/{$assets}/mob/css/activity/smashegg/slider.css"> -->
    </head>
<body onselectstart="return true;" ondragstart="return false;">
<link rel="stylesheet" href="/assets/{$assets}/mob/css/activity/smashegg/main.css?v=2014-10-22">
<link rel="stylesheet" href="/assets/{$assets}/mob/css/activity/smashegg/winDialog.css?v=2014-10-22">
<link href="/assets/shoptaemob/shakecards/base.min.css" rel="stylesheet" type="text/css">
<link href="/assets/shoptaemob/shakecards/shakecards.css" rel="stylesheet" type="text/css">
<style>
.ui-dialog_wrap{
color:{$cfg.front_mob_cfg.dialog.dialog_text_color|default:'#a6a9ac'};border: 1px solid {$cfg.front_mob_cfg.dialog.dialog_border|default:'#393939'};background: -webkit-linear-gradient(top, {$cfg.front_mob_cfg.dialog.dialog_bg0|default:'#393939'}, {$cfg.front_mob_cfg.dialog.dialog_bg1|default:'#212121'}); 
}
.ui-dialog_wrap .h-wrap {
background: url({$cfg.front_mob_cfg.dialog.dialog_bg|default:'https://img.alicdn.com/imgextra/i4/27390555/TB2SR8SsXXXXXcMXpXXXXXXXXXX-27390555.png'});
}

.ui-dialog_wrap hr {
border-color:{$cfg.front_mob_cfg.dialog.dialog_hr0|default:'#000'} transparent {$cfg.front_mob_cfg.dialog.dialog_hr1|default:'#414141'};
}
.ui-dialog_wrap  footer  .btn-yes {
 background: -webkit-linear-gradient(top, {$cfg.front_mob_cfg.dialog.dialog_btnclose0|default:'#10369d'}, {$cfg.front_mob_cfg.dialog.dialog_btnclose1|default:'#10369d'});color:{$cfg.front_mob_cfg.dialog.dialog_btntext|default:'#FFF'} 
}
.ui-dialog_wrap  footer .btn-no {
 background: -webkit-linear-gradient(top, {$cfg.front_mob_cfg.dialog.dialog_btnok0|default:'#10369d'}, {$cfg.front_mob_cfg.dialog.dialog_btnok1|default:'#10369d'});color:{$cfg.front_mob_cfg.dialog.dialog_btntext|default:'#FFF'} 
}
#rankBox #rankInfoBox .rankInfo input,#awardBox .codeInfoBox .buttons input {
color:{$cfg.front_mob_cfg.jinnang.text|default:'#FFF'}; background: -webkit-linear-gradient(top, {$cfg.front_mob_cfg.jinnang.button0|default:'#1dbbd7'}, {$cfg.front_mob_cfg.jinnang.button1|default:'#10369d'});
}
.sign_main .calendar_month_prev,.sign_main .calendar_month_next,.sign .on, .sign .on_bu, .sign .on_la, .sign .giftok, .sign .gift
{
background-image:url({$cfg.front_mob_cfg.cal.bg|default:'https://img.alicdn.com/imgextra/i1/27390555/TB2LmNEtFXXXXblXXXXXXXXXXXX-27390555.png'});
}
.instro-wall article table tr {
    border-top: 1px solid {$cfg.front_mob_cfg.start_page.instro_wall_giftline|default:'#a17a5e'};
}
.ui-dialog-wrap footer .btn-no{
text-decoration: none; background: -webkit-linear-gradient(top, {$cfg.front_mob_cfg.dialog.dialog_btnclose0|default:'#308ce8'}, {$cfg.front_mob_cfg.dialog.dialog_btnclose1|default:'#2262a3'});color:{$cfg.front_mob_cfg.dialog.dialog_btntext|default:'#FFF'};
}
.ui-dialog-wrap footer .btn-yes{
text-decoration:none;background: -webkit-linear-gradient(top, {$cfg.front_mob_cfg.dialog.dialog_btnok0|default:'#308ce8'}, {$cfg.front_mob_cfg.dialog.dialog_btnok1|default:'#2262a3'});;color:{$cfg.front_mob_cfg.dialog.dialog_btntext|default:'#FFF'} 
}
.exchange-wrap button {
background:-webkit-gradient(linear,0 0,0 100%,from({$cfg.front_mob_cfg.start_page.instro_wall_gift_button0|default:'#1dbbd7'}),to({$cfg.front_mob_cfg.start_page.instro_wall_gift_button1|default:'#10369d'}));
}
.win-table tr,.win-table td,{
border-top: 1px solid {$cfg.front_mob_cfg.start_page.instro_wall_giftline};
}
.win-table tr td input {
background:-webkit-gradient(linear,0 0,0 100%,from({$cfg.front_mob_cfg.start_page.instro_wall_gift_button0|default:'#1dbbd7'}),to({$cfg.front_mob_cfg.start_page.instro_wall_gift_button1|default:'#10369d'}));
}
.isEmptyAward {
width: 11rem;margin-left:0.6rem;
}
img.jinnang {
	width:3rem;
    position: absolute;
    z-index: 100;
    right: 1rem;
    top: 1rem;
}
</style>
<input type="hidden" class="seller_nick" value="{$seller_nick}" />
<input type="hidden" class="sid" value="{$sid}" />
<input type="hidden" class="eid" value="{$event.id}" />
<input type="hidden" class="appname" value="{$appname}" />
<input type="hidden" class="curtool" value="mob_shake" />
<audio src="/assets/shoptaemob/shakecards/shake.mp3" id="J_ShakeAudio"></audio>
<div class="container">
<img class="jinnang" style="right:.5rem;top:.5rem" src="{$cfg.front_mob_cfg.start_page.main_bag|default:'https://img.alicdn.com/imgextra/i4/27390555/TB2bVzGtXXXXXceXXXXXXXXXXXX-27390555.png'}">
    <!--活动结束时，隐藏stage-->
		<div class="home">
			<div id="homeBgBox">
				<img id="homeBg" style="width:360px" src="{$cfg.front_mob_cfg.start_page.main_bg|default:'https://img.alicdn.com/imgextra/i3/27390555/TB2QewpahdkpuFjy0FbXXaNnpXa-27390555.jpg'}">
			</div>
            <div class="titleImg imgContainer absCenter abs">
                <div class="ui-wrapper ui-resizable-autohide" style="position: absolute; width: 187px; height: 82px; top: 17.5781px; left: 93.75px; margin: 0px; float: none; z-index: 70; padding: 0px; cursor: move;" _from="titleImg"><img id="titleImg" class="slaveImg abs layerId-21 defBgColor ui-resizable" src="{$cfg.front_mob_cfg.start_page.main_pictitle|default:'https://img.alicdn.com/imgextra/i3/27390555/TB2SbtwaS4mpuFjSZFOXXaUqpXa-27390555.png'}" style="width: 187px; height: 82px; top: 0.75rem; left: 4rem; margin: 0px; resize: none; position: static; zoom: 1; display: block;"><div class="ui-resizable-handle ui-resizable-n ui-resizable-imgTopTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-e ui-resizable-imgRightTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-s ui-resizable-imgBottomTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-w ui-resizable-imgLeftTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-ne ui-resizable-imgTopRightTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-nw ui-resizable-imgTopLeftTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-sw ui-resizable-imgBottomLeftTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-resizable-imgBottomRightTip" style="z-index: 9030; display: none;"></div><a class="recoverBtn" href="javascript:;" style="display: none;"></a></div>
            </div>
			<!--<div class="titleImg"></div>-->
			<div id="drawBoxImg" class="imgContainer absCenter" style="top: 0px;">
				<div class="ui-wrapper ui-resizable-autohide" style="position: absolute;width: 154px;height: 128px;top: 131.25px;left: 117.188px;margin: 0px;float: none;z-index: 80;padding: 0px;cursor: move;" _from="drawImg"><img id="drawImg" _mousein="0" src="{$cfg.front_mob_cfg.start_page.main_box|default:'https://img.alicdn.com/imgextra/i2/27390555/TB2qPXxaNtmpuFjSZFqXXbHFpXa-27390555.png'}" class="slaveImg abs layerId-1 ui-resizable defBgColor" style="width: 154px; height: 128px; top: 5.6rem; left: 5rem; margin: 0px; resize: none; position: static; zoom: 1; display: block;" resize="1"><div class="ui-resizable-handle ui-resizable-n ui-resizable-imgTopTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-e ui-resizable-imgRightTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-s ui-resizable-imgBottomTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-w ui-resizable-imgLeftTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-ne ui-resizable-imgTopRightTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-nw ui-resizable-imgTopLeftTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-sw ui-resizable-imgBottomLeftTip" style="z-index: 9030; display: none;"></div><div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-resizable-imgBottomRightTip" style="z-index: 9030; display: none;"></div><a class="recoverBtn" href="javascript:;" style="display: none;"></a></div>		
			</div>
			<div id="startBtn" style="background:url({$cfg.front_mob_cfg.start_page.main_phback|default:"https://img.alicdn.com/imgextra/i3/27390555/TB2VZFZarRkpuFjSspmXXc.9XXa-27390555.png"}) no-repeat;background-size: 100%;">
				<div id="shake" class="tada" style="background:url({$cfg.front_mob_cfg.start_page.main_phone|default:"https://img.alicdn.com/imgextra/i4/27390555/TB2lixCaItnpuFjSZFKXXalFFXa-27390555.png"}) no-repeat;background-size: 100%;"></div>
			</div>
			<div class="gameInfoBox" style="background:{$cfg.front_mob_cfg.start_page.main_bgcolor|default:'#667b02'};bottom:auto">
				

<div class="joinInfoBox">
	<div id="joinNumLine" class="joinNumLine absCenter layerId-2 defBgColor" style="color: rgb(224, 229, 204);font-size: 0.6rem;text-shadow: none;cursor: move;">
	已有<span id="joinNum" class="specil" style="color:rgb(255, 216, 0);font-size:0.75rem;text-shadow:none;"> {$event.lotts} </span>人参与，中出{$event.wins}份奖品</div>
    
	<div id="drawInfo" class="absCenter " style="top: 1.25rem; left: 2.5rem; cursor: move; position: absolute;">
		<div class="hide dayDraw4Total">今天可抽 <label class="golden-txt" id="">{$user.score|default:0}</label> 次</div>
		<div class="totalDraw">您有 <label class="golden-txt" id="J_Seeds">{$user.seeds|default:0}</label> 积分</div>
		<div class="dayDraw">您今天还有 <label class="golden-txt" id="J_Times">{$user.score|default:0}</label> 次抽奖机会</div>
	</div>
    
</div>
				
				<div style="height:3.5rem;width:100%;"></div>
			</div>		
    <footer>
        {if $cfg.front_mob_cfg.start_page.copyright == 1}<a href="https://fuwu.m.taobao.com/wap/ser/index.htm#/serviceDetail?serviceCode=ts-30901&tracelog=sp" class="copyright">©本活动由订单抽大奖提供</a>{/if}
    </footer>
	</div>
<script type="text/javascript" src="/assets/{$assets}/mob/src/activity/smashegg/src/rww.js" ></script>
<script type="text/javascript" src="/assets/{$assets}/mob/lib/sea.js" id="seajsnode"></script>
<script type="text/javascript" src="//g.alicdn.com/tmapp/tida2/2.2.3/tida.js?appkey={$appkey}"></script>
<!--script type="text/javascript" src="//g.alicdn.com/tmapp/tida2/2.0.141/tida.js?appkey={$appkey}"></script-->
<!--script src="//g.alicdn.com/tmapp/tida/3.0.20/tida.js?appkey={$appkey}"></script-->
<script type="text/javascript">
			
	var base_url = "{$tae_url}?m=shopmobile";
	//var base_url = "https://llxlw.hz.taeapp.com/?m=shopmobile";
    var APP = {
        urls: {
            verify: "/webegg/GetVerifyJson?pid=55764531&wechat_id=fromUsername&sid={$sid}", // 短信验证
            base_url: base_url, // 基础url
            win: base_url+"&c=index&a=lott&sid={$sid}", // 抽奖
            exchange: base_url+"&c=gift&a=pickup&sid={$sid}", // 兑奖
            mission: base_url+"&c=user&a=mission&sid={$sid}", // 抽奖机会任务
            signday: base_url+"&c=user&a=sign_cur_day&sid={$sid}", // 签到
            signpassday: base_url+"&c=user&a=sign_pass_day&sid={$sid}", // 补签
            signlingjiang: base_url+"&c=user&a=sign_ling_jiang&sid={$sid}", // 累计天数领奖
            gift: base_url+"&c=gift&sid={$sid}", // 获取奖品信息
            user: base_url+"&c=user&sid={$sid}", // 获取和保存用户信息
        },
        imgs: {
            logo: "//img.alicdn.com/imgextra/i4/27390555/TB2WbxtsXXXXXb6XpXXXXXXXXXX-27390555.png", // 商家logo
            coin: "//img.alicdn.com/imgextra/i2/27390555/TB2k.tWsXXXXXaYXXXXXXXXXXXX-27390555.png" // 银元
        },
		eid: {$event.id}, // 是否手机端兑奖
        sid: {$sid}, // 是否手机端兑奖
        onmobile: true, // 是否手机端兑奖
        regFirst: false, // 填写用户信息规则: true--抽奖开始前填写，false--兑奖开始前填写
        eventUid: '0', // 用户ID，读取用户信息后自动填写
        sellerUid: {$cfg.taobao_user_id|default:0}, // 店铺用户ID
        point: '0', // 积分，读取用户信息后自动填写
        chance: '0', // 抽奖次数，读取用户信息后自动填写
        mustFollow: {$cfg.collect|default:"false"}, // 是否强制关注
        snName: '积分', // 消耗积分
        followed: false // 是否已关注
    };
	
	
	Tida.ready({
		//console:1,
	}, function(){
		if(!Tida.isSupportedApp){
			if("{$cfg.qrcode}"!=""){
			document.getElementById('loading_egg').innerHTML ='<img src="{$cfg.qrcode}_150x150.jpg"/>';
			}
			document.getElementById('err_msg').innerHTML = '<div><br />正在使用不支持的环境，请在手机淘宝中或浏览器中扫码打开本链接<br /><br />微信用户请点击右上角“在浏览器中打开”<br /><br /><textarea>'+window.location.href+'</textarea></div>';
			Tida.openClient( window.location.href );
			return;
		}
		// TODO
		var options = {
		sellerNick: "{$seller_nick}"
		};
		//Tida.hideTitle();
		//k01UulQpdrfWP/FlNTAiJ3nWf8p4y2Nzgo7UGObn3+dFq0=
		Tida.mixNick(options, function (data) {
			/*
			APP.urls.win+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			APP.urls.exchange+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			APP.urls.mission+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			APP.urls.signday+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			APP.urls.signpassday+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			APP.urls.signlingjiang+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			APP.urls.gift+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			APP.urls.user+="&tida_mixnick="+encodeURIComponent(data.mixnick);
			*/
			APP.mixnick = encodeURIComponent(data.mixnick);
			
			
			seajs.config({
			base:"/assets/{$assets}/mob/"
			});
			seajs.use("/assets/{$assets}/mob/src/activity/smashegg/src/main");
		});
	});
	
    var g_rem = 20;
    (function(docElem,win){
        var setFontSize = function(){
            g_rem = (docElem.getBoundingClientRect().width || docElem.clientWidth || win.innerWidth)/16;
            !g_rem && (g_rem = 20);
            docElem.style.fontSize = g_rem + 'px';
        }
        win.addEventListener("resize",setFontSize,false);
        setFontSize();
    })(document.documentElement,window);
</script>
<div mark="stat_code" style="width:0px; height:0px; display:none;">
</div>
</body>
</html>